/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package practice.de1;

import java.util.Scanner;

/**
 *
 * Đề 1, đọc ghi file, chú ý đường dẫn file
 */
public class Main {

    public static void main(String[] args) {
        ManagerEvent me = new ManagerEvent();
        Scanner keyboard = new Scanner(System.in);

        int choice = 0;
        do {

            System.out.println("1. Create an Event");
            System.out.println("2. Find event");
            System.out.println("3. List all events");
            System.out.println("0. Exit");
            choice = keyboard.nextInt();

            switch (choice) {
                case 1:
                    me.createEvent();
                    break;
                case 2:
                    me.findEvent();
                    break;
                case 3:
                    me.listEvent();
                    break;
            }
        } while (choice != 0);
    }
}
